package com.sunqianhu.design_patterns_23.creational.factory_method;

public class Client {
    public static void main(String[] args) {
        //FactoryMethod factoryMethod = new PdfFactoryMethod();
        FactoryMethod factoryMethod = new WordFactoryMethod();
        Document document = factoryMethod.getDocument();
        document.open();
    }
}
